
using System;
using System.Drawing;
using System.Windows.Forms;

namespace AntdUI_APPDemo.Controls
{
    public partial class Drawer : UserControl
    {
        Form form;
        public Drawer(Form _form)
        {
            form = _form;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var align = AntdUI.TAlignMini.Right;
            if (radio1.Checked) align = AntdUI.TAlignMini.Top;
            if (radio4.Checked) align = AntdUI.TAlignMini.Left;
            if (radio3.Checked) align = AntdUI.TAlignMini.Bottom;

            AntdUI.Drawer.open(form, new Avatar(form)
            {
                Size = new Size(500, 300)
            }, align);
        }
    }
}